import React from "react";
import "./App.less";
import { useRoutes } from "react-router-dom";
import routes from "./routes/index";

export default function App() {
  const element = useRoutes(routes);
  return (
    <div className="app">
      {/* <Routes>
          <Route path="/login" element={<Login />}></Route>
          <Route path="/admin" element={<Admin />}></Route>
          <Route path="/" element={<Navigate to="/admin" />} />
        </Routes> */}

      {element}
    </div>
  );
}
